package common.store.web.bean;

import java.io.Serializable;

/**
 *  `pid` varchar(64) NOT NULL,
 `pname` varchar(50) default NULL,
 `market_price` double default NULL,
 `shop_price` double default NULL,
 `pimage` varchar(200) default NULL,
 `pdate` date default NULL,
 `is_hot` int(11) default NULL,
 `pdesc` varchar(255) default NULL,
 `pflag` int(11) default NULL,
 `cid` varchar(32) default NULL,
 */
public class Product implements Serializable{

    private String pid;

    private String pname;

    private Double marketPrice;

    private Double shopPrice;

    private String pimage;

    private  String pdesc;

    private String uid;

    private  Integer sid;

    private String sname;

    private  String cid;

    private  Integer isHot;

    private String quantity;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Double marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public String getPimage() {
        return pimage;
    }

    public void setPimage(String pimage) {
        this.pimage = pimage;
    }

    public String getPdesc() {
        return pdesc;
    }

    public void setPdesc(String pdesc) {
        this.pdesc = pdesc;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid='" + pid + '\'' +
                ", pname='" + pname + '\'' +
                ", marketPrice=" + marketPrice +
                ", shopPrice=" + shopPrice +
                ", pimage='" + pimage + '\'' +
                ", pdesc='" + pdesc + '\'' +
                ", uid='" + uid + '\'' +
                ", sid=" + sid +
                ", sname='" + sname + '\'' +
                ", cid='" + cid + '\'' +
                ", isHot=" + isHot +
                ", quantity='" + quantity + '\'' +
                '}';
    }
}
